<template>
	<v-input-code v-model="code" :length="6" @complete="onComplete" @clear="onClear" />
</template>

<script setup lang="ts">
import { ref } from 'vue';

const code = ref(Array(4).fill(''));
const isComplete = ref(false);
function onComplete(value: string) {
      console.log('验证码完成:', value);
    }
    function onClear() {
      console.log('验证码已清除');
    }
</script>
